<?php
/**
 * Created by Wang.
 * User: nango
 * Date: 2016-06-07
 * Time: 13:11
 */

namespace App\Home\Model;


use Wang\Database\Model;

class Product extends Model
{
    /**
     * 表名
     * @var string
     */
    protected $table = 'product';


    function __construct()
    {
        parent::__construct($this->table);
    }

    function getProduct(){
        $result = $this->select()
            ->query()
            ->getAll();
        return $result;
    }
}